package com.final_project.zombiemenace;

import com.final_project.zombiemenace.model.Assets;
import com.final_project.zombiemenace.screens.LoadingScreen;
import com.kilobolt.framework.Screen;
import com.kilobolt.framework.implementation.AndroidGame;

public class PlayTheGame extends AndroidGame {

	@Override
	public Screen getInitScreen() {
		return new LoadingScreen(this);
	}

	@Override
	public void onBackPressed() {
		getCurrentScreen().backButton();
	}

	@Override
	public void onResume() {
		super.onResume();
		if (Assets.gameplayMusics != null) {
			Assets.gameplayMusics.play();
		}
	}

	@Override
	public void onPause() {
		super.onPause();
		Assets.gameplayMusics.pause();
	}
}
